<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>添加夺宝期数</title>
    <link href="${base}/resource/admin/css/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/resource/admin/js/jquery.js"></script>
    <script type="text/javascript" src="/resource/admin/js/jquery.tools.js"></script>
    <script type="text/javascript" src="/resource/admin/js/jquery.validate.js"></script>
    <script type="text/javascript" src="/resource/admin/editor/kindeditor.js"></script>
    <script type="text/javascript" src="/resource/admin/js/common.js"></script>
    <script type="text/javascript" src="/resource/admin/js/input.js"></script>
    <script type="text/javascript" src="/resource/admin/datePicker/WdatePicker.js"></script>
    <script type="text/javascript">
        $().ready(function() {
            var $inputForm = $("#inputForm");
            [@flash_message /]
        });
    </script>
</head>
<body>
<div class="path">
    <a href="${base}/common/index">首页</a> &raquo;发布夺宝
</div>
<form id="inputForm" action="save" method="post" class="required-form" enctype="multipart/form-data"  onsubmit="return validateForm(this)">
    <input type="hidden" name="productId" value="${dbProduct.id}"/>
    <table class="input">
        <tr>
            <th>
                <span class="requiredField">*</span>总份数
            </th>
            <td>
                <input type="text" name="quantity" class="text required" maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>单份金额
            </th>
            <td>
                <input type="text" name="singleAmount" class="text" value="1" maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>单用户限购数量
            </th>
            <td>
                <input type="text" name="purchaseQuantity" class="text" maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>起步份数
            </th>
            <td>
                <input type="text" name="stepNum" value="1" class="text" maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>当期开始时间
            </th>
            <td>
                <input type="text" name="startDate" class="text Wdate" onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd HH:mm:ss'});" />
            </td>
        </tr>
        <tr>
            <th>
                <span class="requiredField">*</span>内定中奖号码
            </th>
            <td>
                <input type="text" name="phone" class="text" maxlength="100" />
            </td>
        </tr>
        <tr>
            <th>
                &nbsp;
            </th>
            <td>
                <input type="submit" class="button" value="提交" />
                <input type="button" class="button" value="返回" onclick="location.href='list.do?productId=${dbProduct.id}'" />
            </td>
        </tr>
    </table>
</form>
</body>
</html>